package com.zzh.ideas.web.service;

import com.zzh.ideas.core.common.enums.FileType;
import org.springframework.web.multipart.MultipartFile;

/**
 * description： <br>
 * createTime: 2019/1/420:13 <br>
 *
 * @author zzh
 */
public interface FileService {
    default boolean deleteFile(String path, String fileName) throws Exception {
        return deleteFile(path + "/" + fileName);
    }

    boolean deleteFile(String path) throws Exception;

    boolean deleteDir(String path) throws Exception;

    String uploadFile(MultipartFile file, String desPath, FileType fileType) throws Exception;

    boolean createDir(String path) throws Exception;


}
